﻿<Window x:Class="Demo1WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:myVMod="clr-namespace:AMEE.Demo1WPF.ViewModel"
        xmlns:myView="clr-namespace:AMEE.Demo1WPF.View"
        xmlns:properties="clr-namespace:AMEE.Demo1WPF.Properties"
        Title="Demo 1 - AMEE Bein Kontroller" Height="600" Width="850">
    <Window.Resources>
        <Style x:Key="myButtonStyle" TargetType="Button">
            <Setter Property="Background" Value="Transparent" />
            <Setter Property="FontStyle" Value="Normal" />
            <Setter Property="BorderBrush" Value="Transparent" />
        </Style>
        <Style x:Key="idPortStyle" TargetType="TextBox">
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="Width" Value="44" />
        </Style>
        <Style x:Key="adcStyle" TargetType="TextBox">
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="Width" Value="35" />
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="*" />
            <RowDefinition Height="25" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="1" Background="#FF3B4480">
            <TabControl BorderBrush="#FF3B4480">
                <TabItem x:Name="TabItem1" Header="Settings">
                    <Grid Background="#FFD0D2F9">
                        <!--Background="#FFE5E5E5"-->
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*" />
                            <ColumnDefinition Width="3*" />
                            <ColumnDefinition Width="1*" />
                            <ColumnDefinition Width="3*" />
                            <ColumnDefinition Width="1*" />
                            <ColumnDefinition Width="3*" />
                            <ColumnDefinition Width="1*" />
                            <ColumnDefinition Width="3*" />
                        </Grid.ColumnDefinitions>
                        <Label Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Content="Bein Vorne Links" HorizontalAlignment="Center" VerticalAlignment="Top" />
                        <Label Content="ID" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <Label Content="IPv4" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <Label Content="Port" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VLID}" Grid.Column="1" Grid.Row="1" Style="{StaticResource idPortStyle}" />
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VLIP}" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Center" Width="90" />
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VLPort}" Grid.Column="1" Grid.Row="3" Style="{StaticResource idPortStyle}" />

                        <Label Grid.Column="2" Grid.Row="0" Grid.ColumnSpan="2" Content="Bein Vorne Rechts" HorizontalAlignment="Center" VerticalAlignment="Top" />
                        <Label Content="ID" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <Label Content="IPv4" Grid.Column="2" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <Label Content="Port" Grid.Column="2" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VRID}" Grid.Column="3" Grid.Row="1" Style="{StaticResource idPortStyle}" />
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VRIP}" Grid.Column="3" Grid.Row="2" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Center" Width="90" />
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VRPort}" Grid.Column="3" Grid.Row="3" Style="{StaticResource idPortStyle}" />

                        <Label Grid.Column="4" Grid.Row="0" Grid.ColumnSpan="2" Content="Bein Hinten Links" HorizontalAlignment="Center" VerticalAlignment="Top" />
                        <Label Content="ID" Grid.Column="4" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <Label Content="IPv4" Grid.Column="4" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <Label Content="Port" Grid.Column="4" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HLID}" Grid.Column="5" Grid.Row="1" Style="{StaticResource idPortStyle}" />
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HLIP}" Grid.Column="5" Grid.Row="2" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Center" Width="90" />
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HLPort}" Grid.Column="5" Grid.Row="3" Style="{StaticResource idPortStyle}" />

                        <Label Grid.Column="6" Grid.Row="0" Grid.ColumnSpan="2" Content="Bein Hinten Rechts" HorizontalAlignment="Center" VerticalAlignment="Top" />
                        <Label Content="ID" Grid.Column="6" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <Label Content="IPv4" Grid.Column="6" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <Label Content="Port" Grid.Column="6" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HRID}" Grid.Column="7" Grid.Row="1" HorizontalAlignment="Left" Style="{StaticResource idPortStyle}" />
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HRIP}" Grid.Column="7" Grid.Row="2" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Center" Width="90" />
                        <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HRPort}" Grid.Column="7" Grid.Row="3" HorizontalAlignment="Left" Style="{StaticResource idPortStyle}" />

                        <Label Content="xyz Werte" Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Top" />
                        <!-- Vorne Links -->
                        <Label Content="Up" Grid.Column="0" Grid.Row="5" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="5">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_UpX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_UpY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_UpZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="UpA" Grid.Column="0" Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="6">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_UpAheadX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_UpAheadY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_UpAheadZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="DwnA" Grid.Column="0" Grid.Row="7" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="7">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_DownAheadX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_DownAheadY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_DownAheadZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="DwnB" Grid.Column="0" Grid.Row="8" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="8">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_DownBackX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_DownBackY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_DownBackZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>

                        <!-- Vorne Rechts -->
                        <Label Content="Up" Grid.Column="2" Grid.Row="5" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="3" Grid.Row="5">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_UpX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_UpY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_UpZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="UpA" Grid.Column="2" Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="3" Grid.Row="6">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_UpAheadX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_UpAheadY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_UpAheadZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="DwnA" Grid.Column="2" Grid.Row="7" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="3" Grid.Row="7">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_DownAheadX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_DownAheadY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_DownAheadZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="DwnB" Grid.Column="2" Grid.Row="8" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="3" Grid.Row="8">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_DownBackX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_DownBackY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_DownBackZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>

                        <!-- Hinten Links -->
                        <Label Content="Up" Grid.Column="4" Grid.Row="5" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="5" Grid.Row="5">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_UpX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_UpY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_UpZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="UpA" Grid.Column="4" Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="5" Grid.Row="6">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_UpAheadX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_UpAheadY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_UpAheadZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="DwnA" Grid.Column="4" Grid.Row="7" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="5" Grid.Row="7">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_DownAheadX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_DownAheadY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_DownAheadZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="DwnB" Grid.Column="4" Grid.Row="8" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="5" Grid.Row="8">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_DownBackX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_DownBackY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_DownBackZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>

                        <!-- Hinten Rechts -->
                        <Label Content="Up" Grid.Column="6" Grid.Row="5" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="7" Grid.Row="5">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_UpX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_UpY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_UpZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="UpA" Grid.Column="6" Grid.Row="6" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="7" Grid.Row="6">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_UpAheadX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_UpAheadY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_UpAheadZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="DwnA" Grid.Column="6" Grid.Row="7" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="7" Grid.Row="7">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_DownAheadX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_DownAheadY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_DownAheadZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="DwnB" Grid.Column="6" Grid.Row="8" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="7" Grid.Row="8">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_DownBackX}" ToolTip="X" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_DownBackY}" ToolTip="Y" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_DownBackZ}" ToolTip="Z" Style="{StaticResource adcStyle}" />
                        </StackPanel>

                        <Label Content="adc Werte" Grid.Column="0" Grid.Row="9" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Top" />
                        <Label Content="Up" Grid.Column="0" Grid.Row="10" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="10">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_A_Up_adc}" ToolTip="A" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_B_Up_adc}" ToolTip="B" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_C_Up_adc}" ToolTip="C" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_D_Up_adc}" ToolTip="D" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="Down" Grid.Column="0" Grid.Row="11" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0" Padding="0,0,0,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="11">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_A_Down_adc}" ToolTip="A" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_B_Down_adc}" ToolTip="B" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_C_Down_adc}" ToolTip="C" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VL_D_Down_adc}" ToolTip="D" Style="{StaticResource adcStyle}" />
                        </StackPanel>

                        <Label Content="Up" Grid.Column="2" Grid.Row="10" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="3" Grid.Row="10">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_A_Up_adc}" ToolTip="A" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_B_Up_adc}" ToolTip="B" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_C_Up_adc}" ToolTip="C" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_D_Up_adc}" ToolTip="D" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="Down" Grid.Column="2" Grid.Row="11" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0" Padding="0,0,0,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="3" Grid.Row="11">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_A_Down_adc}" ToolTip="A" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_B_Down_adc}" ToolTip="B" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_C_Down_adc}" ToolTip="C" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.VR_D_Down_adc}" ToolTip="D" Style="{StaticResource adcStyle}" />
                        </StackPanel>

                        <Label Content="Up" Grid.Column="4" Grid.Row="10" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="5" Grid.Row="10">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_A_Up_adc}" ToolTip="A" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_B_Up_adc}" ToolTip="B" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_C_Up_adc}" ToolTip="C" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_D_Up_adc}" ToolTip="D" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="Down" Grid.Column="4" Grid.Row="11" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0" Padding="0,0,0,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="5" Grid.Row="11">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_A_Down_adc}" ToolTip="A" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_B_Down_adc}" ToolTip="B" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_C_Down_adc}" ToolTip="C" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HL_D_Down_adc}" ToolTip="D" Style="{StaticResource adcStyle}" />
                        </StackPanel>

                        <Label Content="Up" Grid.Column="6" Grid.Row="10" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,10,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="7" Grid.Row="10">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_A_Up_adc}" ToolTip="A" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_B_Up_adc}" ToolTip="B" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_C_Up_adc}" ToolTip="C" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_D_Up_adc}" ToolTip="D" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Label Content="Down" Grid.Column="6" Grid.Row="11" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0" Padding="0,0,0,0"/>
                        <StackPanel Orientation="Horizontal" Grid.Column="7" Grid.Row="11">
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_A_Down_adc}" ToolTip="A" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_B_Down_adc}" ToolTip="B" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_C_Down_adc}" ToolTip="C" Style="{StaticResource adcStyle}" />
                            <TextBox Text="{Binding Source={StaticResource Settings}, Path=Default.HR_D_Down_adc}" ToolTip="D" Style="{StaticResource adcStyle}" />
                        </StackPanel>
                        <Button Grid.Column="7" Grid.Row="12" Command="{Binding ApplySettingsCommand}"
                                HorizontalAlignment="Center" Margin="0,20,0,20" VerticalAlignment="Bottom" Width="64" 
                                Style="{StaticResource myButtonStyle}">
                            <Button.ToolTip>Übernehmen und Speichern der aktuellen Werte. Neu Verbinden.</Button.ToolTip>
                            <Image Source="Resources\Import 96x96.ico" />
                        </Button>
                    </Grid>
                </TabItem>
                <TabItem x:Name="TabItem2" Header="Control" IsEnabled="{Binding IsConnected}">
                    <Grid Background="#FFD0D2F9">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid Grid.Row="0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="1*" />
                                <ColumnDefinition Width="1*" />
                                <ColumnDefinition Width="1*" />
                                <ColumnDefinition Width="1*" />
                                <ColumnDefinition Width="1*" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="1*" />
                                <RowDefinition Height="1*" />
                            </Grid.RowDefinitions>
                            <Button x:Name="StepButton" Command="{Binding RunCommand}" CommandParameter="One"
                                    Grid.Column="0" Grid.Row="1" Style="{StaticResource myButtonStyle}" Height="128" Width="128">
                                <Button.Effect>
                                    <DropShadowEffect/>
                                </Button.Effect>
                                <Image Source="Resources\PlayStep.png" />
                                <Button.ToolTip>Einen Schrittzyklus ausführen</Button.ToolTip>
                            </Button>
                            <!-- IsEnabled="{Binding IsReadyToWalk, Mode=OneWay}" -->
                            <Button x:Name="WalkButton" Command="{Binding RunCommand}" CommandParameter="Multiple"
                                    Grid.Column="1" Grid.Row="1" Style="{StaticResource myButtonStyle}"  Height="128" Width="128">
                                <Button.Effect>
                                    <DropShadowEffect/>
                                </Button.Effect>
                                <Image Source="Resources\Play 128x128.png" />
                                <Button.ToolTip>Mehrere (5) Schrittzyklen ausführen</Button.ToolTip>
                            </Button>
                            <Button x:Name="ParkButton" Command="{Binding ParkCommand}"
                                    Grid.Column="2" Style="{StaticResource myButtonStyle}" Height="96" Width="96">
                                <Button.Effect>
                                    <DropShadowEffect/>
                                </Button.Effect>
                                <Image Source="Resources\Parking 64x64.png" />
                                <Button.ToolTip>In Parkposition gehen</Button.ToolTip>
                            </Button>
                            <Button x:Name="ShutDownButton" Command="{Binding ShutDownCommand}"
                                    Grid.Column="4" Style="{StaticResource myButtonStyle}" Height="96" Width="96">
                                <Image Source="Resources\Power 128x128.png" />
                                <Button.ToolTip>TCP Verbindung trennen</Button.ToolTip>
                            </Button>
                            <Button x:Name="StartPoseButton" Command="{Binding StartPoseCommand}" 
                                    Grid.Column="0" Grid.Row="0" Style="{StaticResource myButtonStyle}" Height="128" Width="128">
                                <Button.Effect>
                                    <DropShadowEffect/>
                                </Button.Effect>
                                <Image Source="Resources\Start.png" />
                                <Button.ToolTip>Startposition einnehmen</Button.ToolTip>
                            </Button>
                            <Button x:Name="StompButton" Command="{Binding StompCommand}" CommandParameter="Multiple"
                                    Grid.Column="1" Grid.Row="0" Style="{StaticResource myButtonStyle}" Height="128" Width="128">
                                <Image Source="Resources\Step 128x128.png" />
                                <Button.ToolTip>Stampfen (5x)</Button.ToolTip>
                            </Button>
                        </Grid>
                        <Grid Grid.Row="1">
                            <Label Content="Status der Beine" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        </Grid>
                        <StackPanel Orientation="Horizontal" Grid.Row="2">
                            <ItemsControl ItemsSource="{Binding BeinViewModels}">
                                <!-- Template zur Darstellung von GridFieldViewModel (ein einzelnes Feld)-->
                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                    <!-- Stelle das folgend dar-->
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="50" />
                                            <ColumnDefinition Width="150" />
                                        </Grid.ColumnDefinitions>
                                        <Label Content="{Binding BeinID}" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="Bold" />
                                        <Label Content="{Binding BeinState}" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" FontWeight="Bold" />
                                    </Grid>
                                </DataTemplate>
                                </ItemsControl.ItemTemplate>
                            </ItemsControl>
                        </StackPanel>
                        <Grid Grid.Row="3">
                            <StackPanel Orientation="Horizontal">
                                <Label Content="VR" />
                                <Button Name="EchoVLButton" Content="Echo" ToolTip="{Binding Source={StaticResource Settings}, Path=Default.VRID}" HorizontalAlignment="Left" Margin="0,5,30,0" Grid.Row="4" VerticalAlignment="Top" Width="Auto"
                                        Command="{Binding EchoCommand}" CommandParameter="1"/>
                                <Label Content="VL" />
                                <Button Name="Echo2Button" Content="Echo" ToolTip="{Binding Source={StaticResource Settings}, Path=Default.VLID}" HorizontalAlignment="Left" Margin="0,5,30,0" Grid.Row="4" VerticalAlignment="Top" Width="Auto"
                                        Command="{Binding EchoCommand}" CommandParameter="2"/>
                                <Label Content="HR" />
                                <Button Name="Echo3Button" Content="Echo" ToolTip="{Binding Source={StaticResource Settings}, Path=Default.HRID}" HorizontalAlignment="Left" Margin="0,5,30,0" Grid.Row="4" VerticalAlignment="Top" Width="Auto"
                                        Command="{Binding EchoCommand}" CommandParameter="3"/>
                                <Label Content="HL" />
                                <Button Name="Echo4Button" Content="Echo" ToolTip="{Binding Source={StaticResource Settings}, Path=Default.HLID}" HorizontalAlignment="Left" Margin="0,5,30,0" Grid.Row="4" VerticalAlignment="Top" Width="Auto"
                                        Command="{Binding EchoCommand}" CommandParameter="4"/>
                            </StackPanel>
                            
                        </Grid>
                        
                        <!-- TODO: Show Leg Status -->
                    </Grid>
            </TabItem>
        </TabControl>
        </Grid>
        <Grid Grid.Row="2">
            
            <Button Name="OpenLogButton" Command="{Binding OpenLogCommand}"
                                HorizontalAlignment="Right" Margin="0,0,0,0" Grid.Row="7" VerticalAlignment="Bottom" Width="Auto" 
                                Style="{StaticResource myButtonStyle}">
                <Button.ToolTip>Log Fenster öffnen</Button.ToolTip>
                <Image Source="Resources\chat 24x24.ico" />
                </Button>
            <Label Content="" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Center" FontSize="10" />
        </Grid>

    </Grid>
</Window>
